package com.app.util;

import java.util.Calendar;
import java.util.Date;

public class DateUtil {
	public static final int TIMETOUPDATE_INDAY = 18;

	public DateUtil() {
		
	}

	public Date getFirstTimeTOUpdate() {
		Date result = null;
		Calendar cal = Calendar.getInstance();
		int nowHour = cal.get(Calendar.HOUR_OF_DAY);
		int dec = nowHour - TIMETOUPDATE_INDAY;
		cal.add(Calendar.HOUR_OF_DAY, dec);
		result = cal.getTime();
		return result;
	}
}
